/**
 * 
 */
package net.homelinux.ajay.net.ondisk.model.client;

import java.util.HashMap;

/**
 * @author ajay
 *
 */
public class Collections extends AppObject {

  private HashMap childCollections = new HashMap();

  /**
   * 
   */
  public Collections() {
  }

  public Collection makeCollection(String name) {
    return new Collection(name,this);
  }

  public void addChild(String name, Collection collection) {
    childCollections.put(name,collection);
    fireChangeListeners();
  }

  public Collection getCollection(String name) {
    return (Collection) childCollections.get(name);
  }

  public void removeCollection(String name) {
    childCollections.remove(name);
  }

}
